package cn.mulanbay.persistent.mapper;

import cn.mulanbay.persistent.entity.SystemMonitorUser;
import cn.mulanbay.persistent.enums.MonitorBussType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author fenghong
 * @create 2022-01-16 10:00
 */
public interface SystemMonitorUserMapper extends BaseMapper<SystemMonitorUser> {

    List<SystemMonitorUser> getListByBussType(@Param("bussType")MonitorBussType bussType);

    List<SystemMonitorUser> getListByUserId(@Param("userId")Long userId);

    void deleteByUserId(@Param("userId")Long userId);
}
